import { request } from '../../../request';

export function mktcustinfoSelect(params: any) {
  return request({
    url: `/erpsyncmes/mktcustinfo/select`,
    method: 'get',
    params
  });
}
export function pubtechnologySelect(params: any) {
  return request({
    url: `/erpsyncmes/pubtechnology/select`,
    method: 'get',
    params
  });
}
export function mktprodinfoselect(params: any) {
  return request({
    url: `/erpsyncmes/mktprodinfo/select`,
    method: 'get',
    params
  });
}
export function supplierlist(params: any) {
  return request({
    url: `/erpsyncmes/mrp-supplier/list`,
    method: 'get',
    params
  });
}
export function machinelist(params: any) {
  return request({
    url: `/erpsyncmes/equ-machine-info/list`,
    method: 'get',
    params
  });
}
// 产品工单信息搜索
export function erpsyncmesMktProdOrder(params: any) {
  return request({
    url: `/erpsyncmes/mktProdOrder/select`,
    method: 'get',
    params
  });
}
export function erpsyncmesMktcustorder(params: any) {
  return request({
    url: `/erpsyncmes/mktcustorder/select`,
    method: 'get',
    params
  });
}
export function erpsyncmesequMachineInfo(data: any) {
  return request({
    url: `/erpsyncmes/equ-machine-info/manual-sync-mes`,
    method: 'post',
    data
  });
}
export function erpsyncmesmrpSupplier(data: any) {
  return request({
    url: `/erpsyncmes/mrp-supplier/manual-sync-mes`,
    method: 'post',
    data
  });
}
export function erpsyncmesmktcustinfo(params: any) {
  return request({
    url: `/erpsyncmes/mktcustinfo/handInsert`,
    method: 'get',
    params
  });
}
export function erpsyncmesmktcustorder(params: any) {
  return request({
    url: `/erpsyncmes/mktcustorder/handInsert`,
    method: 'get',
    params
  });
}
export function erpsyncmesmktprodinfo(params: any) {
  return request({
    url: `/erpsyncmes/mktprodinfo/handInsert`,
    method: 'get',
    params
  });
}
// 新增工厂设备数据
export function addfactoryequipmentdata(data: any) {
  return request({
    url: `/mes/basicmodel/equipment/add/new`,
    method: 'post',
    data
  });
}
export function basicmodelareaadd(data: any) {
  return request({
    url: `/mes/basicmodel/area/add/new`,
    method: 'post',
    data
  });
}
export function basicmodellocationupdate(data: any) {
  return request({
    url: `/mes/basicmodel/location/update`,
    method: 'post',
    data
  });
}
export function basicmodellocationadd(data: any) {
  return request({
    url: `/mes/basicmodel/location/add/new`,
    method: 'post',
    data
  });
}
export function basicmodelareaupdate(data: any) {
  return request({
    url: `/mes/basicmodel/area/update`,
    method: 'post',
    data
  });
}
// 修改工厂设备数据
export function edfactoryequipmentdataupdate(data: any) {
  return request({
    url: `/mes/basicmodel/equipment/update`,
    method: 'post',
    data
  });
}
// 删除工厂设备数据
export function defactoryequipmentdata(data: any) {
  return request({
    url: `/mes/basicmodel/equipment/delete-batch`,
    method: 'post',
    data
  });
}

export function erpsyncmesmktProdOrder(params: any) {
  return request({
    url: `/erpsyncmes/mktProdOrder/handInsert`,
    method: 'get',
    params
  });
}
export function erpsyncmespubtechnology(params: any) {
  return request({
    url: `/erpsyncmes/pubtechnology/handInsert`,
    method: 'get',
    params
  });
}
export function SolderOnselect(params: any) {
  return request({
    url: `/qms/SolderOn/select`,
    method: 'get',
    params
  });
}
export function pulseWaveformSelectionList() {
  return request({
    url: `/mes/pulse/pulseWaveformSelection/list`,
    method: 'get'
  });
}
export function SolderOnupdate(data: any) {
  return request({
    url: `/qms/SolderOn/update`,
    method: 'post',
    data
  });
}
export function pulseWaveformSelectionadd(data: any) {
  return request({
    url: `/mes/pulse/pulseWaveformSelection/add/new`,
    method: 'post',
    data
  });
}
export function pulseWaveformSelectionupdate(data: any) {
  return request({
    url: `/mes/pulse/pulseWaveformSelection/update`,
    method: 'post',
    data
  });
}
export function SolderOndelete(data: any) {
  return request({
    url: `/qms/SolderOn/delete`,
    method: 'post',
    data
  });
}
export function pulseWaveformSelectiondeleteBatch(data: any) {
  return request({
    url: `/mes/pulse/pulseWaveformSelection/deleteBatch`,
    method: 'post',
    data
  });
}
export function ppcontroldelete(data: any) {
  return request({
    url: `/qms/ppcontrol/delete`,
    method: 'post',
    data
  });
}
export function downLoadPdf(params: any) {
  return request({
    url: '/qms/code/generateAndPrintBarcode',
    method: 'get',
    responseType: 'arraybuffer',
    params
  });
}
export function downLoadPdfs(params: any) {
  return request({
    url: '/qms/code/generateAndPrintBarcode',
    method: 'get',
    responseType: 'arraybuffer',
    params
  });
}
export function ppcontrolselect(params: any) {
  return request({
    url: `/qms/ppcontrol/select`,
    method: 'get',
    params
  });
}
export function ppcontroladd(data: any) {
  return request({
    url: `/qms/ppcontrol/add`,
    method: 'post',
    data
  });
}
export function ppcontrolupdate(data: any) {
  return request({
    url: `/qms/ppcontrol/update`,
    method: 'post',
    data
  });
}
export function ppcontroloutbound(data: any) {
  return request({
    url: `/qms/ppcontrol/outbound`,
    method: 'post',
    data
  });
}
export function ppcontrolinbound(data: any) {
  return request({
    url: `/qms/ppcontrol/inbound`,
    method: 'post',
    data
  });
}
export function ppcontrolbatchAudit(data: any) {
  return request({
    url: `/qms/ppcontrol/batchAudit`,
    method: 'post',
    data
  });
}
export function autoDryProcessbatchAudit(data: any) {
  return request({
    url: `/qms/agv/plan/autoDryProcess/batchAudit`,
    method: 'post',
    data
  });
}
export function ppcontrolbatchRevoke(data: any) {
  return request({
    url: `/qms/ppcontrol/batchRevoke`,
    method: 'post',
    data
  });
}
export function autoDryProcessbatchRevoke(data: any) {
  return request({
    url: `/qms/agv/plan/autoDryProcess/batchRevoke`,
    method: 'post',
    data
  });
}
export function planautoDryProcessselect(params: any) {
  return request({
    url: `/qms/agv/plan/autoDryProcess/select`,
    method: 'get',
    params
  });
}
export function autoDryProcesstask(params: any) {
  return request({
    url: `/qms/agv/plan/autoDryProcess/task`,
    method: 'get',
    params
  });
}
export function autoDryProcessdelete(data: any) {
  return request({
    url: `/qms/agv/plan/autoDryProcess/delete`,
    method: 'post',
    data
  });
}
export function autoDryProcessoutbound(data: any) {
  return request({
    url: `/qms/agv/plan/autoDryProcess/outbound`,
    method: 'post',
    data
  });
}
export function basicmodellocationlist(params: any) {
  return request({
    url: `/mes/basicmodel/location/list`,
    method: 'get',
    params
  });
}
// 批次查询列表
export function erpsyncmesBBatchlist(params: any) {
  return request({
    url: `/erpsyncmes/lot-info/list`,
    method: 'get',
    params
  });
}
export function basicmodelequipmentlist(params: any) {
  return request({
    url: `/mes/basicmodel/equipment/list`,
    method: 'get',
    params
  });
}
// 工作代码位置
export function basicmodelarealist(params: any) {
  return request({
    url: `/mes/basicmodel/area/area-id/list`,
    method: 'get',
    params
  });
}
// 设备类型
export function devicetypelist(params: any) {
  return request({
    url: `/mes/basicmodel/equipment/type/list`,
    method: 'get',
    params
  });
}
// 厂商型号
export function manufacturermodellist(params: any) {
  return request({
    url: `/mes/basicmodel/equipment/vendor-model/list`,
    method: 'get',
    params
  });
}
// 用户群组
export function usergrouplist(params: any) {
  return request({
    url: `/mes/basicmodel/equipment/user-group/list`,
    method: 'get',
    params
  });
}
// 制程线代码
export function processlinecodelist(params: any) {
  return request({
    url: `/mes/basicmodel/line/line-id/list`,
    method: 'get',
    params
  });
}
// 设备状态
export function devicestatuslist(params: any) {
  return request({
    url: `/mes/basicmodel/equipment/status/list`,
    method: 'get',
    params
  });
}
//
export function basicmodelarealistData(params: any) {
  return request({
    url: `/mes/basicmodel/area/list`,
    method: 'get',
    params
  });
}
export function basicmodellocationdelete(data: any) {
  return request({
    url: `/mes/basicmodel/location/delete-batch`,
    method: 'post',
    data
  });
}
export function basicmodelareadelete(data: any) {
  return request({
    url: `/mes/basicmodel/area/delete-batch`,
    method: 'post',
    data
  });
}
// 批次同步
export function erpsyncmesBbatchlist(params: any) {
  return request({
    url: `/erpsyncmes/lot-info/manual-sync-mes`,
    method: 'post',
    params
  });
}
export function vcppost(urls: any, data: any) {
  return request({
    url: urls,
    method: 'post',
    data
  });
}
export function vcpget(urls: any, params: any) {
  return request({
    url: urls,
    method: 'get',
    params
  });
}
